package com.ts.api.module.api.service;

import com.ts.api.module.api.entity.bo.ApiDataExchangeBO;
import com.ts.api.module.api.entity.bo.ApiParameterBO;
import com.ts.api.module.api.entity.bo.ApiPhoneMaskDataExchangeBO;

/**
 *  API-撞库业务层
 *
 */
public interface ApiBizDataExchangeService {

    /**
     *  撞库业务
     *
     *  @param   apiParameterBO     请求业务参数
     *  @return  ApiDataExchangeBO
     *  @throws  Exception
     */
    ApiDataExchangeBO dataExchange(ApiParameterBO apiParameterBO) throws Exception;

    /**
     * 撞库业务-手机号掩码模式
     *
     * @param   apiParameterBO 请求业务参数
     * @param   maskLen        掩码位数
     * @return  ApiPhoneMaskDataExchangeBO
     * @throws  Exception
     */
    ApiPhoneMaskDataExchangeBO dataExchangePhoneMask(ApiParameterBO apiParameterBO, Integer maskLen) throws Exception;

}
